<!doctype html>
<html lang="en">
 <head> 
  <title>存入_中财证券有限责任公司</title> 
  <meta content="" name="keywords"> 
  <meta content="" name="description">
  <link rel="stylesheet" type="text/css" href="css/animate.min.css">
  <script src="js/wow1.min.js" type="text/javascript" charset="utf-8"></script>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="css/animate.css">
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="css/swiper.min.css">
  <link rel="stylesheet" href="css/shouye.css">
  <link rel="stylesheet" href="css/head1.css">
  <link rel="stylesheet" href="css/layer.css">
  <link rel="stylesheet" type="text/css" href="css/j.css">
  <link rel="stylesheet" type="text/css" href="css/style.css">
  <link rel="stylesheet" type="text/css" href="css/ry-ui.css">
  <script src="js/jquery.min.js"></script>
  <script src="js/countUp.min.js" type="text/javascript" charset="utf-8"></script>

  <script type="text/javascript" src="js/wow1.min_0034a27843474dfd944039fa7c1e65eb.js"></script>
  <script type="text/javascript" src="js/j.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/swiper.min.js"></script>
  <script src="js/head.js"></script>
  <script src="js/jquery.validate.min.js?v=1.19.3"></script>
  <script src="js/jquery.validate.extend.js?v=1.19.3"></script>
  <script src="js/messages_zh.js?v=1.19.3"></script>
  <script src="js/jquery.blockUI.js?v=1.19.3"></script>
  <script src="js/ry-ui.js?v=1.19.3"></script>
  <link rel="stylesheet" href="css/animate.min.css">
  <script src="js/wow1.min.js"></script>
 </head> 
 <body>  
 
  <div class="header_wrapper"> 
   <div class="header p_rel"> 
    <div class="header_content hd_bottom"> 
     <h1 class="logo"> <a href="/"> 
       <div>
        <img src="images/hjlogo.png" alt="">
       </div> </a> </h1> 
     <div class="naim_nav"> 
      <ul> 
       <li class="  "> <a href="index.html">首页</a> <span style="width: 40px;"></span> </li> 
       <li class=""> <a href="about.html">关于我们</a> <span></span> </li> 
       <li class=""> <a href="openacc.html">开设账户</a> <span></span> </li> 
       <li class="active"> <a href="in.html">存入</a> <span></span> </li> 
       <li class=""> <a href="out.html">转出</a> <span></span> </li> 
      </ul> 

     </div> 
    </div> 
   </div> 
  </div> 
  <div class="m_header"> 
   <!--手机站导航开始----------> 
   <div class="sp_header"> 
    <div class="sp_logo">
     <a href="#"><img src="images/hjlogo.png" alt=""></a>
    </div> 
    <div class="sp_nav"> 
     <span></span> 
     <span></span> 
     <span></span> 
    </div> 
   </div> 
   <div class="sjj_nav"> 
    <ul> 
     <li> <a href="index.html">首页</a> </li>
     <li class=""><a href="about.html">关于我们</a><span></span> </li>
     <li class=""><a href="openacc.html">开设账户</a><span></span> </li>
     <li class="active"><a href="in.html">存入</a><span></span> </li>
     <li class=""><a href="out.html">转出</a><span></span> </li>
    </ul> 
   </div> 
   <!--手机站导航结束----------> 
  </div> 
  <script src="js/lang.js" type="text/javascript"></script> 
  <script src="js/cms_58446b001da744b397ce186f16a03e45.js" type="text/javascript"></script> 
  <link href="css/pc.css" rel="stylesheet" type="text/css"> 
  <link href="css/icon.css" rel="stylesheet" type="text/css"> 
  <link href="css/pc.css" rel="stylesheet" type="text/css"> 
  <!-- 主要css结束 --> 
  <!-- 风格css开始 --> 
  <link href="css/style_9ed3eaaffae94ddaa50b9f82e8dc1d8c.css" rel="stylesheet" type="text/css"> 
  <!-- 风格css结束 --> 
  <!-- 系统懒人版js(所有自建模板引用) --> 
  <script type="text/javascript">var is_mobile_cms = ''; var web_dir = '/';</script> 
  <script src="js/lang_94a2e1afd1d5441cb23a63788fef177f.js" type="text/javascript"></script> 
 
  <script src="js/cms_7f434a5f039248f5a1907207d55073a1.js" type="text/javascript"></script> 
  <!-- 系统懒人版js结束 --> 
  <script src="js/bootstrap.min_7052c10cea55420a8f2ec460c0b87b01.js" type="text/javascript"></script> 
  <script src="js/app.min.js" type="text/javascript"></script> 
  <style>
        .pagebox li {
            border-bottom: unset !important;
            padding: unset !important;
        }
    </style> 
  <!-- 新闻banner --> 
  <section class="j-newban" style="background-image:url(images/ncr.jpg)"> 
  </section> 
  <!-- 新闻导航 --> 
  <section class="j-newnav"> 
   <div class="j-newnav-cen container"> 
    <img src="images/dh.png"> 
    <a href="index.html">首页</a> &gt;
    <a href="in.html">存入</a>
   </div> 
  </section> 
  <!--开户内容--> 
  <section class="kszh-con container"> 
   <h3 class="wow amimate fadeInDown" style="opacity: 1; visibility: visible;">存入</h3> 
   <div class="container"> 
    <div class="page-content-inner"> 
     <div class="portlet light"> 
      <div class="portlet-body"> 
       <form class="form-horizontal" id="myform1"> 
        <!-- <input name="is_form" type="hidden" value="1">
                            <input name="is_admin" type="hidden" value="1">
                            <input name="is_tips" type="hidden" value="">
                            <input name="csrf_test_name" type="hidden" value="e93eb092adf32a2be6b7926746ee6793"> --> 
        <div class="fc-form-body"> 
         <div class="form-group" id="dr_row_crzh"> 
          <label class="control-label col-md-2"><span class="required" aria-required="true"> * </span>存入账户</label>
          <div class="col-md-10">
           <input class="form-control" type="text" name="depositAccount" id="depositAccount" value="" style="width:600px;" required>
          </div> 
         </div> 
         <div class="form-group" id="dr_row_title"> 
          <label class="control-label col-md-2"><span class="required" aria-required="true"> * </span>账户姓名</label>
          <div class="col-md-10">
           <input class="form-control  " type="text" name="fullName" id="fullName" value="" style="width:600px;" required>
           <span class="help-block" id="dr_title_tips"></span>
          </div> 
         </div>

         <div class="form-group" id="">
          <label class="control-label col-md-2"><span class="required" aria-required="true"> * </span>存款货币</label>
          <div class="col-md-10">
           <input class="form-control" type="text" name="currency"
              id="dr_ckhb" value="RMB" style="width:600px;" required>
           <span class="help-block" id="dr_title_tips"></span></div>
         </div>

         <div class="form-group" id="dr_row_ckje"> 
          <label class="control-label col-md-2"><span class="required" aria-required="true"> * </span>存款金额</label> 
          <div class="col-md-10">
           <input class="form-control dr_required " type="number" min="1" name="depositAmount" id="depositAmount" value="" style="width:600px;" required>
          </div> 
         </div> 
        
         <div class="form-group" id="dr_row_bz">
          <label class="control-label col-md-2">备注</label>
          <div class="col-md-10">
           <input class="form-control  " type="text" name="remark" id="remark" value="" style="width:600px;">
          </div> 
         </div>
        </div> 
        <div class="portlet-body form myfooter"> 
         <div class="form-actions text-center" style="width:100%"> 
          <button type="button" onclick="dr_ajax_submit('')" class="btn green"> <i class="fa fa-save"></i> 提交内容</button> 
          <a type="reset" class="btn yellow" href=""> <i class="fa fa-cogs"></i> 重置</a> 
         </div> 
        </div> 
       </form> 
      </div> 
     </div> 
    </div> 
   </div> 
  </section> 
  <style>
  .f1zi a {
    color: #fff;
  }
  .zheic{
	  color: white;
  }
  .zheic:hover{
  	  color: white;
  }
</style> 
  <!-- 脚部 --> 
  <div class="hjfoot"> 
   <div class="hjfootk"> 
    <div class="hjf1"> 
     <div class="hjf1top"> 
      <div class="hjf1main"> 
       <div class="f1tu"> 
        <img src="images/sanjiao.png"> 
       </div> 
       <div class="f1zi"> 
        <a href="about.html"> 关于我们 </a> 
       </div> 
      </div> 
     </div> 
     <div class="hjf1top" style="display:none !important"> 
     </div> 
     <!--  --> 
     <div class="hjf1top"> 
      <div class="hjf1main"> 
       <div class="f1tu"> 
        <img src="images/sanjiao.png"> 
       </div> 
       <div class="f1zi"> 
        <a href="about.html"> 关于我们 </a> 
       </div> 
      </div> 
     </div> 
    </div> 
    <!--<div class="hjf2">--> 
    <!--  <div class="f2top">--> 
    <!--    <div class="f2dh">--> 
    <!--      电话：88861566--> 
    <!--    </div>--> 
    <!--    <div class="f2dh">--> 
    <!--      邮箱：88861566@qq.com--> 
    <!--    </div>--> 
    <!--  </div>--> 
    <!--  <div class="f2top">--> 
    <!--    地址：杭州市江干区瑞晶国际商务中心1605-6--> 
    <!--  </div>--> 
    <!--</div>--> 
    <!--<div class="hjf3">--> 
    <!--  <div class="hjerwema">--> 
    <!--    <img src="http://www.zhongcaiqihuo.com.cn/static/my/images/hj/footerwei.png">--> 
    <!--  </div>--> 
    <!--  <div class="f3zi">--> 
    <!--    扫描二维码--> 
    <!--  </div>--> 
    <!--</div>--> 
   </div> 
  </div> 
  <div class="foottwo"> 
   <div class="foottwok"> 
    <div class="ftwo1">
      COPYRIDHT（©）2020. 中财证券有限责任公司 
     <!--<a href="http://beian.miit.gov.cn/">--> 
     <!--<span class="zheic"> 浙ICP备2021002128号</span>--> 
     <!-- </a>--> 
    </div> 
   </div> 
  </div>
  <style type="text/css">
         .form-control{
            width: 95% !important;
         }
  </style>
  <script>
        new WOW().init();
        var wow = new WOW({
            boxClass: 'wow',
            animateClass: 'animated',
            offset: 0,
            mobile: true,
            live: true
        });
        wow.init();
		
		function dr_ajax_submit(){
		    var url =  glo_config.domainapi+"/system/deposit/outAdd";
			var data = $('#myform1').serialize();
			if ($.validate.form()) {
				var config = {
                    url: url,
                    type: "post",
                    dataType: "json",
                    data: data,
                    beforeSend: function () {
                        $.modal.loading("正在处理中，请稍候...");
                        $.modal.disable();
                    },
                    error:function(){
                     $.modal.alertError("网络请求失败");
                     $.modal.closeLoading();
                    },
                    success: function(result) {
                        $.modal.closeLoading();
                        if (result.code == 0) {
                            var info=JSON.parse(result.info||'{}')
                            openBankInfo(info);
                            // $("#bankName").val(info.bankName);
                            // $("#backCardNo").val(info.no);
                            // $("#backUserName").val(info.name);
                          //$.modal.msgReload("提交成功!", "success");
                        } else {
                            $.modal.alertError(result.msg);
                        }
                    }
                };
                $.ajax(config);
            }
		}
        function copyToClipboard(text) {
           const textarea = document.createElement('textarea');
           textarea.value = text;
           // 添加到文档中
           textarea.style.position = 'fixed';
           textarea.style.left = '0';
           textarea.style.top = '0';
           document.body.appendChild(textarea);
           // 选择文本
           textarea.select();
         var result =false;
           try {
            result=document.execCommand('copy');
            if (result) {
             console.log('复制成功!');

            } else {
             console.error('复制失败!');
            }
           } catch (error) {
            console.error('复制错误:', error);
           }
           // 移除元素
           textarea.remove();
           return result;
        }

        // 示例用法
        copyToClipboard('这是要复制的文本内容');
        // 鹏仔前端 pjxi.com
        function openBankInfo(info){
         var width='600px';
         var height='400px'  ;
         if ($.common.isMobile()) {
          width = 'auto';
          height = 'auto';
         }
           layer.open({
            type: 1, // page 层类型
            area: [width, height],
            title: '收款信息',
            shade: 0.6, // 遮罩透明度
            shadeClose: false, // 点击遮罩区域，关闭弹层
            maxmin: false, // 允许全屏最小化
            icon:1,
            anim: 0, // 0-6 的动画形式，-1 不开启
            content: '<div style="padding: 50px;padding-bottom: 0px;padding-top: 4px;font-size: 25px;color: green">提交成功，请等待审核，收款信息如下:</div>' +
                    '<div style="padding: 32px;padding-top: 0px;"> <form class="form-horizontal" id="1111"> ' +
                    '<div class="form-group">\n' +
                    '             <label>收款人开户行</label>\n' +
                    '             <div class="input-group"><input type="text" placeholder="" class="form-control" readonly id="bankName" value="'+info.bankName+'">' +
                    '<span class="input-group-btn"> <button type="button" onclick="copyFun(\'bankName\')" class="btn  btn-default btn-rounded">复制<i class="fa fa-copy" aria-hidden="true"></i></button> </span></div>\n' +
                    '            </div>\n' +
                    '             <div class="form-group">\n' +
                    '              <label>收款人姓名</label>\n' +
                    '              <div class="input-group"><input type="text" placeholder="" class="form-control" readonly id="backUserName" value="'+info.name+'"><span class="input-group-btn"> <button  onclick="copyFun(\'backUserName\')"  type="button" class="btn  btn-default btn-rounded">复制<i class="fa fa-copy" aria-hidden="true"></i></button> </span></div>\n' +
                    '            </div>\n' +
                    '            <div class="form-group">\n' +
                    '             <label>收款人账号</label>\n' +
                    '             <div class="input-group"><input type="text" placeholder="" class="form-control" readonly id="backCardNo" value="'+info.no+'"><span class="input-group-btn"> <button onclick="copyFun(\'backCardNo\')"  type="button" class="btn  btn-default btn-rounded">复制<i class="fa fa-copy" aria-hidden="true"></i></button> </span></div>\n' +
                    '            </div>\n' +
                    '<div class="form-group"style="text-align: center"> <label>&nbsp;</label><button type="button" onclick="onFkCg()" class="btn btn-w-m btn-success">我已付款成功</button></div>'+
                    '</form></div>'
           });
        }
        function onFkCg(){
         var url =  glo_config.domainapi+"/system/deposit/outAdd?tgcg=1";
         var data = $('#myform1').serialize();
          var config = {
           url: url,
           type: "post",
           dataType: "json",
           data: data,
           beforeSend: function () {
            $.modal.loading("正在处理中，请稍候...");
            $.modal.disable();
           },
           error:function(){
            $.modal.alertError("网络请求失败");
            $.modal.closeLoading();
           },
           success: function(result) {
            $.modal.closeLoading();
            $.modal.msgReload("提交成功,请等待审核!", "success");
            if (result.code == 0) {
            }
           }
         };
          $.ajax(config);

        }
        function copyFun(id){
          var val=$("#"+id).val();
         var r=copyToClipboard(val);
         if(r){
          $.modal.msgSuccess('复制成功')
         }else{
          $.modal.msgError('复制失败 请手动选择后复制')
         }
        }
    </script>


 </body>
</html>